﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UnitOfWorkUnit
{
    public abstract class GatewayBase
    {
        protected UnitOfWork UnitOfWork { get; private set; }
        public GatewayBase(UnitOfWork unit) { this.UnitOfWork = unit; }
        public bool Commit() { return this.UnitOfWork.Commit(); }
        public void Rollback() { this.UnitOfWork.Rollback(); }
    }
}
